package com.example.demo.service;

import com.example.demo.pojo.PageBean;
import com.example.demo.pojo.UtilityBill;

import java.util.List;

public interface UtilityBillService {

    PageBean<UtilityBill> findByuserid(int userid,int pageNum,int pageSize);

    void newutilitybill(int userid,double remainingbalance);

    void update(double waterusage, double watercost, double electricityusage, double electricitycost, double totalamount, double remainingbalance ,int billid);

    UtilityBill selectendnull(int userid);

    void setendtime(Integer billid);

    PageBean<UtilityBill> findByrealname(String realname, int pageNum, int pageSize);

    UtilityBill getBybillid(Integer billid);
}
